package com.fuluwa.domain.usercenter.model.competence;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import com.fuluwa.domain.shared.AbstractIdDomainObject;

/**
 * Competence sub-category define,such as ,the general has the manager sub
 * competence
 * 
 * @author yongxia
 * @Date Jul 13, 2013 9:32:15 PM
 */
@Entity
public class CompetenceSubType extends AbstractIdDomainObject {
	@Enumerated(EnumType.STRING)
	private CompetenceType competenceType;
	private String name;

	private CompetenceSubType() {
	}
	public CompetenceSubType(CompetenceType competenceType, String name) {
		this.competenceType = competenceType;
		this.name = name;
	}

	public CompetenceType getCompetenceType() {
		return competenceType;
	}

	public String getName() {
		return name;
	}

}